﻿using Core.Domain.Customers;

namespace Services.Customers
{

    /// <summary>
    /// 用户注册反馈
    /// </summary>
    public class CustomerRegistrationRequest
    {
        /// <summary>
        /// 当前用户
        /// </summary>
        public Customer Customer { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        public string UserName { get; set; }
        
        /// <summary>
        /// 登录密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 注册邮箱
        /// </summary>
        public string Email { get;set; }

        /// <summary>
        /// 注册方式
        /// </summary>
        public RegisterMethod Method { get; set; }

        public CustomerRegistrationRequest(Customer customer, string username,
            string password,
            string email,
            RegisterMethod method = RegisterMethod.Name
            )
        {
            this.Customer = customer;
            this.UserName = username;
            this.Password = password;
            this.Email = email;
            this.Method = method;
        }

    }
}
